/* 管理页面公共样式 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f0f2f5;
}

/* 仪表盘部分 */
.dashboard-section {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 18px;
    margin: 0;
}

.view-all {
    color: #1890ff;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* 订单表格 */
.order-table {
    overflow-x: auto;
}

.order-table table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th,
.order-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.order-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.order-table tr:hover {
    background-color: #f8f9fa;
}

.status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.status.pending {
    background-color: #faad14;
    color: white;
}

.status.shipped {
    background-color: #52c41a;
    color: white;
}

.btn-action {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    background-color: #1890ff;
    color: white;
    cursor: pointer;
}

.btn-action:hover {
    background-color: #40a9ff;
}

/* 图表卡片 */
.chart-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
}

.chart-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
}

.chart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.chart-container-1 {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.chart-container-1 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.booksInfo {
    padding: 10px;
    height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.booksPrice {
    padding: 10px;
    color: #ff4d4f;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .chart-container-1 {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .chart-container-1 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}